﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SaleOfMoviesSystem.Sqlite.Models
{
    public class Cinema
    {
        [Required]
        [Key]
        public int CinemaId { get; set; }

        [Required]
        [MaxLength(255)]
        public string CinemaName { get; set; }

        [Required]
        public string Place { get; set; }

        public List<Movie> Movies { get; set; } = new List<Movie>();
        /// <summary>
        /// 距离字段实际应该是获取当前位置信息进行动态计算的
        /// </summary>
        //public double Distance { get; set; }
    }
}